package com.fight.strive;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;
import java.util.Locale;
import java.util.TimeZone;


@SpringBootApplication
@EnableDubbo
public class StriveApplication {

    public static void main(String[] args) {
        SpringApplication.run(StriveApplication.class, args);
    }

    /**
     * 设置java8时区
     */
    @PostConstruct
    void started() {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        Locale.setDefault(Locale.SIMPLIFIED_CHINESE);
    }
}
